<template>
	<view @click="handleImgDetail">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			list: Array,
			index: Number
		},
		mounted() {
		},
		methods: {
			handleImgDetail() {
				console.log(this.list, this.index)
				getApp().globalData.imgList = this.list;
				getApp().globalData.imgIndex = this.index;
				uni.navigateTo({
					url:"/pages/imgDetail/index"
				})
			}
		}
	}
</script>

<style>

</style>
